1.Ubuntu Create directory Command format: mkdir [options] directory ... Command features: The mkdir command enables you to create a directory named with the specified name at the specified location. The user who created the directory must have
Command name: chmod
Permission: All Users
Usage: chmod [-CFVR] [-- help] [-- version] mode file...
Note: file access permissions for Linux/Unix are classified into three levels: file owner, group, and others. Chmod can be used
To control how
First, Chown commandPurpose: Change the owner or group of the file. The command is composed of the word change owner.Examples of Use:1. Change the owner of the file:Chown Jim Program.cChange the owner of the file program.c to Jim. As an owner, Jim
1. Role
Change the owner and owner group of one or more files or directories. The usage permission is superuser. 2. Format
chown [Options] User or group file 3. Main parameters
–dereference: Affected is the object indicated by the symbolic link,
The display information for the ll instruction is (only Nameservice1 a directory under the current directory):Drwxr-xr-x 3 HDFs hdfs 4096 April 16:19 Nameservice1The above information indicates: permissions (drwxr-xr-x 3), owning User (HDFS) and
Chown the owner of the specified file to the specified user or group, the user can be either a user name or a user ID; a group can be a group name or a group ID; a file is a space-separated list of files to change permissions, and wildcard
Chown-r Tom.root OldboyChanging the current directory 's Chown (which is the owner) for Root,-r means looping through, if there are subdirectories in the current directory , and changing those subdirectories[Email protected] ~]# chown-r
, usingchown CommandChange file ownerin the shell, you can use thechown Commandto change the file owner. chown Commandis the abbreviation for change owner (changing owner). It is important to note thatThe user must be in an existing system, which
The Chmodchmod command is used to modify the permissions of a file or folder.Have studied beforels -l, the first one--has been studied before, and substituting refers to this is a textThe following rw-r--r--is the file's permissionsThe first three
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.